package com.partner.springsecurity;

import java.util.*;
import org.springframework.security.core.*;
import org.springframework.security.core.userdetails.*;

public class SpringSysUser extends User
{
   private static final long serialVersionUID = 1L;
   private int userId;
   private String userName;
   private String userAccount;
   
   public int getUserId()
   {
      return userId;
   }

   public void setUserId(int userId)
   {
      this.userId = userId;
   }

   public String getUserName()
   {
      return userName;
   }

   public void setUserName(String userName)
   {
      this.userName = userName;
   }

   public String getUserAccount()
   {
      return userAccount;
   }

   public void setUserAccount(String userAccount)
   {
      this.userAccount = userAccount;
   }

//   public SpringSysUser(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities)
//   {
//      super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
//      // TODO Auto-generated constructor stub
//   }

   
   public SpringSysUser(int userId, String userName, String userAccount, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities)
   {
      super(userAccount, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
      
      this.userId = userId;
      this.userName = userName;
      this.userAccount = userAccount;
   }

}
